package org.apache.servicecomb.samples.practise.houserush.sale.rpc;

import org.apache.servicecomb.samples.practise.houserush.sale.rpc.po.House;
import org.apache.servicecomb.samples.practise.houserush.sale.rpc.po.Realestate;

import java.util.List;

public interface HouseApi {
    House createHouse(Integer buildingId, House house);
    House findHouse(Integer id);
    House updateHouse(Integer id, House house);
    void removeHouse(Integer id);
    List<House> indexHouses(Integer buildingId);

    Realestate findByRealestateId(Integer realestateId);

    //    PUT 锁定房源 houses/lock_houses_for_sale
    List<House> lockHousesForSale(List<Integer> ids);

    int updateReleaseLockingStatesForHouses(List<Integer> ids);

}
